#version 120
#extension GL_EXT_gpu_shader4 : enable

//Receberei como atributos
//attribute vec4 Q_00_01_02_03;
//attribute vec3 Q_11_12_13;
//attribute vec3 Q_22_23_33;


//varying mat4 Q;
varying vec4 osTetra;

void main ()
{
//  Q[0][0] = Q_00_01_02_03[0];
//  Q[0][1] = Q[1][0] = Q_00_01_02_03[1];
//  Q[0][2] = Q[2][0] = Q_00_01_02_03[2];
//  Q[0][3] = Q[3][0] = Q_00_01_02_03[3];
//  Q[1][1] = Q_11_12_13[0];
//  Q[1][2] = Q[2][1] = Q_11_12_13[1];
//  Q[1][3] = Q[3][1] = Q_11_12_13[2];
//  Q[2][2] = Q_22_23_33[0];
//  Q[2][3] = Q[3][2] = Q_22_23_33[1];
//  Q[3][3] = Q_22_23_33[2];
  
  osTetra = gl_Vertex ;

	gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex ;
// gl_Position /= gl_Position.w ;

	gl_FrontColor = vec4(1.0,0.0,0.0,1.0);
}
